package com.huaxiafinance.management.mapper;

import com.huaxiafinance.management.dto.request.MemberDto;
import com.huaxiafinance.management.model.MemberInfo;
import org.apache.ibatis.annotations.Param;

public interface MemberInfoMapper {
    int deleteByPrimaryKey(Integer id);

    int insert(MemberInfo record);

    int insertSelective(MemberInfo record);

    MemberInfo selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(MemberInfo record);

    int updateByPrimaryKey(MemberInfo record);

    MemberInfo queryMemberDetails(MemberDto dto);

    MemberInfo queryMembershipLevel(MemberDto dto);

    Double selectGradeRatio(@Param("userUuid") String userUuid, @Param("triggerId")String triggerId);

    /**
     * 查询用户信息
     * @param userUuid
     * @return
     */
    MemberInfo selectMemberByUserUuid(@Param("userUuid") String userUuid);
}